<? include('layer/head.html'); ?>

<body class="ly13 usercenter">
	<? include('layer/topnav.html'); ?>
	<? include('layer/header.html'); ?>
	<div class="contenter clrfix">
    	<div class="aside_left">
        	<? include('layer/usercentermenu.html'); ?>
        </div>
    	<div class="article">
            <div class="box_border">
            	<div class="wrap section">
                    <div class="hd">充值记录 <span>(提供近三个月的充值记录查询)</span></div>
                    <!-----------充值记录Begin---------->
                    <?php if($userPayRecord){?>
                    <table class="bd">
                        <tr>
                            <th width="120">订单号</th>
                            <th width="160">交易时间</th>
                            <th width="160">充值货币数量（个）</th>
                            <th width="150">支付金额（元）</th>
                            <th width="120">交易渠道</th>
                            <th>充值状态</th>
                        </tr>
                        <?php foreach($userPayRecord as $key=>$val){?>
                        <tr>
                            <td><?php echo $val['rechargesn'];?></td>
                            <td><?php echo Date('Y-m-d H:i',$val['time']);?></td>
                            <td><?php if(114 == $val['type'] || 118 == $val['type'] || 119 == $val['type']){echo intval($val['amount']*1000*0.85);}else{echo $val['amount']*1000;}?></td>
                            <td><?php echo $val['amount'];?></td>
                            <td><?php echo $paymethod[$val['type']]['chin'];?></td>
                            <td><?php if($val['status'] == 1){echo '成功';}else{echo '失败';}?></td>
                        </tr>
                        <?php }?>
                    </table>
                    <? include('layer/pagination.html'); ?>
                    <?php }?>
                    <!-----------充值记录End---------->
                    
                </div>
            </div>
        </div>
    	
    </div>
	<? include('layer/footer.html'); ?>
<? include('layer/foot.html'); ?>
<? include('layer/jsstart.html'); ?>
